package com.nameless.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chh
 * @since 2023-02-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_violation_record")
@ApiModel(value="ViolationRecord对象", description="")
public class ViolationRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "车牌号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "车牌号")
    private Integer carNo;

    @ApiModelProperty(value = "违章日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date violationDate;

    @ApiModelProperty(value = "违章时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date violationTime;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "地区")
    private String region;

    @ApiModelProperty(value = "处罚结果")
    private String punishResult;

    @ApiModelProperty(value = "驾驶员")
    private String driver;

    @ApiModelProperty(value = "处理结果")
    private String handlerResult;

    @ApiModelProperty(value = "新增时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addtime;


}
